// tsup.config.ts
import { defineConfig, Options } from "tsup";

export default defineConfig({
  entry: ["src/http-request.ts"],
  format: ["iife"],
  platform: "browser",
  globalName: "HttpRequest",
  dts: true,
  outDir: "dist",
  sourcemap: true,
  clean: true,
  splitting: false,
  target: "es2017",
  external: [], // 外部依赖（不打包进去，如 lodash、axios）
} satisfies Options);
